<template>
	<div>
		<div class="box">
			{{ infoData }}

			<div @click="infoData = { name: 1 }">f</div>
			<div @click="t">+</div>
		</div>
	</div>
</template>
<script>
	import FormItems from '@/components/A/A-form/form/index.vue';
	import C from './c.vue';
	export default {
		components: { FormItems, C },
		props: {
			value: {
				required: true,
			},
		},
		data() {
			return {
				obj1: {},
			};
		},
		provide() {
			return {};
		},
		computed: {
			infoData: {
				get() {
					// return this.value;
					return this.useVModel.call(this);
				},
				set(val) {
					this.$emit('input', val);
				},
			},
		},
		beforeDestroy() {},
		mounted() {},
		methods: {
			t() {
				this.infoData = {};
				this.$nextTick(() => {
					this.infoData = {
						id: 2,
						list: [
							{
								name: 1,
							},
						],
					};
				});
			},
		},
	};
</script>
<style lang="scss" scoped></style>
